package com.heavenick.app.model.pojo;

import java.util.Map;

import com.heavenick.core.model.IPojo;
import com.heavenick.core.util.MapUtil;

@SuppressWarnings("serial")
public class pr_city extends IPojo{
    private Long cityId;

    private String cityName;

    private Long areaId;

    private String areaId97;

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaId97() {
        return areaId97;
    }

    public void setAreaId97(String areaId97) {
        this.areaId97 = areaId97;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        pr_city other = (pr_city) that;
        return (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId()))
            && (this.getCityName() == null ? other.getCityName() == null : this.getCityName().equals(other.getCityName()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()))
            && (this.getAreaId97() == null ? other.getAreaId97() == null : this.getAreaId97().equals(other.getAreaId97()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode());
        result = prime * result + ((getCityName() == null) ? 0 : getCityName().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getAreaId97() == null) ? 0 : getAreaId97().hashCode());
        return result;
    }
//    @Override
//	public String toString() {
//		StringBuffer sb = new StringBuffer("{");
//		Map iMap = MapUtil.populateMap(this);
//		for (Object obj : iMap.keySet()) {
//			sb.append(obj.toString()).append(":").append(iMap.get(obj));
//		}
//		sb.substring(0, sb.length()-1);
//		sb.append("}");
//		return super.toString();
//	}
}